how to evaluate an expression